<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">

        <div class="layui-form-item">
            <label class="layui-form-label required">昵称</label>
            <div class="layui-input-block">
                <input autocomplete="off" type="text" name="name" class="layui-input" lay-verify="required" lay-reqtext="请输入昵称" placeholder="请输入昵称" value="">
            </div>
        </div>

         <!-- 用户组 -->
         
        {if session("admin.group") == 1}
         <div class="layui-form-item">
            <label class="layui-form-label required">用户组</label>
            <div class="layui-input-block">
                <select name="gid">
                    <option value="3">会员</option>
                    <option value="857">游客</option>
                </select>
            </div>
        </div>
        {/if}
        
        {if session("admin.group") == 1}
            <!-- 房间号 -->
            <div class="layui-form-item">
                <label class="layui-form-label">房间号</label>
                <div class="layui-input-block">
                    <select name="rid">
                        {foreach $rooms as $vo}
                        <option value="{$vo.roomid}">{$vo.roomid}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
        {/if}


        
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>